const connect = require("../sql")

/**
 * @Description:  # TODO 获取所有的班级信息
 * @Author: 文渊
 * @Date: 2023-09-06 14:14:04
 */
async function queryall(req,res){
    const sql = "select * from clazz"
    const result = await connect(sql,[])
    if(result.length){
        res.send({code:200,msg:result})
    }else{
        res.send({code:301,msg:"获取班级失败"})
    }
}
module.exports = {
    queryall
}